package com.crm.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 商机
 * </p>
 *
 * @author Hulunico
 * @since 2024-08-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("business")
@ApiModel(value="Business对象", description="商机")
public class Business implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商机id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "客户姓名")
    private String name;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "渠道")
    private String channel;

    @ApiModelProperty(value = "活动id")
    private Long activityId;

    @ApiModelProperty(value = "省")
    private String provinces;

    @ApiModelProperty(value = "区")
    private String city;

    @ApiModelProperty(value = "性別")
    private String sex;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "微信")
    private String weixin;

    @ApiModelProperty(value = "qq")
    private String qq;

    @ApiModelProperty(value = "意向等级")
    private String level;

    @ApiModelProperty(value = "意向学科")
    private String subject;

    @ApiModelProperty(value = "课程")
    private Long courseId;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "归属人")
    private String owner;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "职业")
    private String occupation;

    @ApiModelProperty(value = "学历")
    private String education;

    @ApiModelProperty(value = "在职情况")
    private String job;

    @ApiModelProperty(value = "薪资")
    private String salary;

    @ApiModelProperty(value = "专业")
    private String major;

    @ApiModelProperty(value = "希望薪资")
    private String expectedSalary;

    @ApiModelProperty(value = "学习原因")
    private String reasons;

    @ApiModelProperty(value = "职业计划")
    private String plan;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "计划时间")
    private LocalDate planTime;

    @ApiModelProperty(value = "其他意向")
    private String otherIntention;

    @ApiModelProperty(value = "状态(已分配1  进行中2  回收3)")
    private String status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime nextTime;

    private LocalDateTime lastUpdateTime;

    private Long clueId;

    @ApiModelProperty(value = "是否转派")
    private String transfer;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "回收时间")
    private LocalDateTime endTime;


}
